home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3671 < prev    next >
Encoding:
Text File  |  1996-08-06  |  900 b   |  41 lines

  1. Path: gatekeeper.liffe.com!usenet
  2. From: ralph.mason@liffe.com (Ralph Mason)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: An array of structures in C, C++?
  5. Date: Thu, 25 Jan 1996 13:33:15 GMT
  6. Organization: London International Financial Futures Exchange
  7. Message-ID: <4e8137$rq2@gatekeeper.liffe.com>
  8. References: <4e6j2l$ehm@geraldo.cc.utexas.edu> <4e7f38$bqv@soap.news.pipex.net>
  9. NNTP-Posting-Host: ralph_pc.liffe.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. "D.S. Mear" <fp53@dial.pipex.com> wrote:
  13.  
  14. >Yes. 
  15.  
  16. >example:
  17.  
  18. >typedef struct imag { int x, int y };
  19.  
  20. why not simply an array.  You hardly ever need to typedef in C++
  21.  
  22. class foo
  23. {
  24.      private:
  25.     data member;
  26.  
  27.      public:
  28.     void do_foo();
  29.  
  30. };
  31.  
  32. foo array[56];
  33.  
  34.  
  35.  
  36. this rambling is from ralph.mason@liffe.com
  37. -----------------------------------------------------------------------
  38. University of Liffe, London UK                     My views are my own!
  39.  
  40.  
  41.